package c.e.a.b.f.b;

import b.i.b.f;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class y0 implements Runnable {
    public final /* synthetic */ String a;
    public final /* synthetic */ long b;
    public final /* synthetic */ a c;

    public y0(a aVar, String str, long j) {
        this.c = aVar;
        this.a = str;
        this.b = j;
    }

    public final void run() {
        a aVar = this.c;
        String str = this.a;
        long j = this.b;
        aVar.g();
        f.N(str);
        if (aVar.c.isEmpty()) {
            aVar.d = j;
        }
        Integer num = (Integer) aVar.c.get(str);
        if (num != null) {
            aVar.c.put(str, Integer.valueOf(num.intValue() + 1));
        } else if (aVar.c.size() >= 100) {
            aVar.d().i.a("Too many ads visible");
        } else {
            aVar.c.put(str, Integer.valueOf(1));
            aVar.b.put(str, Long.valueOf(j));
        }
    }
}
